package com.wcs.exam.controller.admin.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Admin-角色信息-保存-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-角色信息-保存-请求参数")
public class AdminSysRoleSaveReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Size(max = 50, message = "system.sys.role.role.name.length.max.limit.error")
    @NotBlank(message = "system.sys.role.role.name.not.null")
    @Schema(description = "名称(内容限制：1~50)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleName;

    @Size(max = 200, message = "system.sys.role.remark.length.max.limit.error")
    @Schema(description = "备注(内容限制：<200)")
    private String remark;

}
